package com.etc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
@Table
public class Movie_cinema {
    @Id
    private Integer cid;

    private String cname;

    private double mprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date mendtime;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date mstartime;

    private Integer mid;

    private String mname;

    private String mgrade;

    private String mpicture;

    private Integer mstatus;

    private String mdirector;

    private String mactor;

    private String mtype;

    private String mcountry;

    private String mlanguage;

    private String mplaytime;

    private String mreleasedtime;

    private String mvideo;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname == null ? null : cname.trim();
    }

    public double getMprice() {
        return mprice;
    }

    public void setMprice(double mprice) {
        this.mprice = mprice;
    }

    public Date getMstartime() {
        return mstartime;
    }

    public void setMstartime(Date mstartime) {
        this.mstartime = mstartime;
    }

    public Date getMendtime() {
        return mendtime;
    }

    public void setMendtime(Date mendtime) {
        this.mendtime = mendtime;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname == null ? null : mname.trim();
    }

    public String getMgrade() {
        return mgrade;
    }

    public void setMgrade(String mgrade) {
        this.mgrade = mgrade == null ? null : mgrade.trim();
    }

    public String getMpicture() {
        return mpicture;
    }

    public void setMpicture(String mpicture) {
        this.mpicture = mpicture == null ? null : mpicture.trim();
    }

    public Integer getMstatus() {
        return mstatus;
    }

    public void setMstatus(Integer mstatus) {
        this.mstatus = mstatus;
    }

    public String getMdirector() {
        return mdirector;
    }

    public void setMdirector(String mdirector) {
        this.mdirector = mdirector == null ? null : mdirector.trim();
    }

    public String getMactor() {
        return mactor;
    }

    public void setMactor(String mactor) {
        this.mactor = mactor == null ? null : mactor.trim();
    }

    public String getMtype() {
        return mtype;
    }

    public void setMtype(String mtype) {
        this.mtype = mtype == null ? null : mtype.trim();
    }

    public String getMcountry() {
        return mcountry;
    }

    public void setMcountry(String mcountry) {
        this.mcountry = mcountry == null ? null : mcountry.trim();
    }

    public String getMlanguage() {
        return mlanguage;
    }

    public void setMlanguage(String mlanguage) {
        this.mlanguage = mlanguage == null ? null : mlanguage.trim();
    }

    public String getMplaytime() {
        return mplaytime;
    }

    public void setMplaytime(String mplaytime) {
        this.mplaytime = mplaytime == null ? null : mplaytime.trim();
    }

    public String getMreleasedtime() {
        return mreleasedtime;
    }

    public void setMreleasedtime(String mreleasedtime) {
        this.mreleasedtime = mreleasedtime == null ? null : mreleasedtime.trim();
    }

    public String getMvideo() {
        return mvideo;
    }

    public void setMvideo(String mvideo) {
        this.mvideo = mvideo == null ? null : mvideo.trim();
    }

    @Override
    public String toString() {
        return "Movie_cinema{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", mprice=" + mprice +
                ", mendtime=" + mendtime +
                ", mstartime=" + mstartime +
                ", mid=" + mid +
                ", mname='" + mname + '\'' +
                ", mgrade='" + mgrade + '\'' +
                ", mpicture='" + mpicture + '\'' +
                ", mstatus=" + mstatus +
                ", mdirector='" + mdirector + '\'' +
                ", mactor='" + mactor + '\'' +
                ", mtype='" + mtype + '\'' +
                ", mcountry='" + mcountry + '\'' +
                ", mlanguage='" + mlanguage + '\'' +
                ", mplaytime='" + mplaytime + '\'' +
                ", mreleasedtime='" + mreleasedtime + '\'' +
                ", mvideo='" + mvideo + '\'' +
                '}';
    }
}